package Work4.CalculateArea;


public class Rectangle extends Shape {
	private double reclength;
	private double recwidth;
	
	public Rectangle(double reclength,double recwidth) {
		super("Rectangle");
		this.reclength=reclength;
		this.recwidth=recwidth;
	}

	
	public double getReclength() {
		return reclength;
	}


	public void setReclength(double reclength) {
		this.reclength = reclength;
	}


	public double getRecwidth() {
		return recwidth;
	}


	public void setRecwidth(double recwidth) {
		this.recwidth = recwidth;
	}


	@Override
	public double CalculateArea() {
		return reclength*recwidth;
	}
	
	@Override
	public double CalculateLength() {
		return (reclength+recwidth)*2;
	}
}